﻿using System;
using System.Collections.Generic;

namespace CoreEx.Database.Client
{
    /// <summary>
    /// Represents a class that is capable of selecting the default <see cref="IConnectionInfo"/>.
    /// </summary>
    public interface IDefaultConnection
    {        
        /// <summary>
        /// Gets or sets the function that is responsible for selecting the default <see cref="IConnectionInfo"/> .
        /// </summary>
        Func<IEnumerable<IConnectionInfo>, IConnectionInfo> Selector { get; set; }
    }
}
